﻿using System;
using System.Net;
using Volo.Abp.Application.Dtos;

namespace Volo.Abp.AuditLogging
{
    public class GetAuditLogsInput : PagedAndSortedResultRequestDto
    {
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// Http方法
        /// </summary>
        public string HttpMethod { get; set; }
        /// <summary>
        /// Url过滤
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 应用名称
        /// </summary>
        public string ApplicationName { get; set; }
        /// <summary>
        /// 关联Id
        /// </summary>
        public string CorrelationId { get; set; }
        /// <summary>
        /// 最大持续时间
        /// </summary>
        public int? MaxExecutionDuration { get; set; }
        /// <summary>
        /// 最小持续时间
        /// </summary>
        public int? MinExecutionDuration { get; set; }
        /// <summary>
        /// 存在异常
        /// </summary>
        public bool? HasException { get; set; }
        /// <summary>
        /// Http状态码
        /// </summary>
        public HttpStatusCode? HttpStatusCode { get; set; }
    }
}